using System;
using System.Collections.Generic;

namespace SvnCore
{
    public class Branch : IComparable
    {
        public Uri Uri { get; set; }

        public List<Revision> Revisions { get; set; }

        public int CompareTo(object obj)
        {
            if (obj is Branch)
            {
                Branch o = (Branch)obj;

                if (o.Uri.ToString().CompareTo(this.Uri.ToString()) > 0)
                {
                    return 1;
                }
            }

            return 0;
        }
    }
}